package com.ttt.radioapp_core.listeners;

import android.view.View;
import android.view.View.OnClickListener;

import com.ttt.radioapp_core.helpers.Constants;
import com.ttt.radioapp_core.helpers.Intents;

public class NoticiasOnClickListener implements OnClickListener {
	private Constants constants;

	public NoticiasOnClickListener(Constants constants) {
		super();
		this.constants = constants;
	}

	@Override
	public void onClick(View v) {
		v.getContext().startActivity(
				Intents.Noticias.getListadoNoticiasIntent(v.getContext(),
						constants.getUrlNoticias()));
	}
}